package generator;


public class GeneratorSearchStarter {
	
	
	/**
	
	// FOOOSH Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "fooosh";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/
	
	/**
	// CIT Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
	private static String CONNECTION_STRING = "jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01";
	private static String SCHEMA = "cit";
	private static String USER = "cit";
	private static String PASSWORD = "cat";
	**/
	
	/**
	// AnalyseDB Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/generator/src/";
	private static String PACKAGE = "analyse.database.object";
	private static String PACKAGE_FOLDER = PACKAGE.replace(".", "/") + "/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "db_analyse";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PersistenceContext context = new PersistenceContext();
		//context.setSourceFolder("C:/_data/workspaces/cit_search/CIT_SEARCH_AUTHENTICATOR/src/");
		context.setSourceFolder("C:/_data/workspaces/cit_search/CIT_SEARCH_WEB_GUI/src/");
		context.setPackageName("com.tsi.cit.search.persistence.search");
		context.setDriverClass("oracle.jdbc.driver.OracleDriver");
		context.setConnectionUrl("jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01");
		context.setSchema("search");
		context.setUser("search");
		context.setPassword("catcat");
		context.setDbAlias("search");
		
		context.addTableToWhitelist("USER_ACCOUNT");
		context.addTableToWhitelist("SEARCH_HISTORIE");
		
		Persistence generator = new Persistence(context);
		generator.start();

	}

}
